﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLM.Domain.Model;

namespace DLM.Services.Interfaces
{
    public interface IAdminService
    {
        void Login(AdminUser admin);

        void LogOut();

        AdminUser GetAdmin(string name);

        void ChangePassword(string accountName,string orginPass, string newPass);

        IEnumerable<Notice> Notices();

        void AddNotice(string subject, string content);

        void UpdateNotice(Notice notice);

        void RemoveNotice(int nid);

        IEnumerable<Log> GetLog(int pageIndex, int pageSize);

        
        
    }
}
